/*
 * CTCPReader.h
 *
 *  Created on: 06.03.2012
 *      Author: caffeine
 */

#ifndef CTCPREADER_H_
#define CTCPREADER_H_
#include "../../lib/socketlib.h"
#include <lampe/stream/IReader.h>

namespace lampe{
namespace stream{
namespace tcp{

class CTCPReader:public IReader{
private:
	SOCKET sock;
	bool signal;
	bool isEnd;
public:
	virtual u32 read(void* buffer, u32 size);
	CTCPReader(SOCKET s,bool sing);
	virtual bool eof();
	virtual ~CTCPReader();
};

}//namespace tcp
}//namespace stream
}//namespace lampe

#endif /* CTCPREADER_H_ */
